@extends('admin.layout.layout')
@section('content')



<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
               图册修改
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6 col-lg-offset-3">
                    	@if (count($errors) > 0)
						    <div class="alert alert-danger">
						        <ul>
						            @foreach ($errors->all() as $error)
						                <li>{{ $error }}</li>
						            @endforeach
						        </ul>
						    </div>
						@endif
                        <form role="form" action="{{url('admin/photo/update')}}" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="{{$scenic->id}}">
                            <table>
                                <tr>
                                    <tr>
                                    <th>
                                            <div class="form-group">
                                                <label>标题&nbsp;</label>  
                                            </div>                                      
                                    </th>

                                    <th>
                                            <div class="form-group">
                                          
                                                <input type="text" name="stitle" value="{{$scenic->stitle}}">   
                                            </div>                                      
                                    </th>
                                    </tr>
                                    <tr>
                                    <th>
                                            <div class="form-group">
                                                <label>文本</label> 
                                            </div>                                      
                                        
                                    </th>
                                    <th>
                                            <div class="form-group">
                                                <textarea name="contents" id="" cols="30" rows="10">{{$scenic->contents}}</textarea>   
                                            </div>                                      
                                    </th>
                                    </tr>
                                    <tr>
                                    <th>
                                            <div class="form-group">
                                                <label>图片</label> 
                                            </div>                                      
                                    </th>
                                    <th>
                                            <div class="form-group">

                                                <input type="file" name="photo" value="{{$scenic->photo}}">   
                                            </div>  
                                    </th>
                                    </tr>

                                </tr>

                            </table>

							{{csrf_field()}}
                            <button type="submit" class="btn btn-default">修改</button>
                            <button type="reset" class="btn btn-default">重置</button>
                        </form>
                    </div>
                    <!-- /.col-lg-6 (nested) -->
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->


@endsection